package com.miao.websecurity.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.miao.websecurity.entity.RoleAdmin;
import com.miao.websecurity.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 管理员与角色中间表(RoleAdmin)表数据库访问层
 *
 * @author MiaoWenqing
 * @since 2021-01-16 15:41:07
 */
@Mapper
@Repository
public interface RoleAdminDao extends BaseMapper<RoleAdmin> {

    /**
     * 根据adminId 获取角色信息
     * @param adminId  admin 账号
     * @return  角色信息list
     */
   List<SysRole> getAdminRoleById(int adminId);

}